import request from '@/utils/request'

// 查询通信报文定义列表
export function listSeriesMessage(query) {
  return request({
    url: '/device/seriesMessage/list',
    method: 'get',
    params: query
  })
}

// 查询通信报文定义详细
export function getSeriesMessage(id) {
  return request({
    url: '/device/seriesMessage/' + id,
    method: 'get'
  })
}

// 新增通信报文定义
export function addSeriesMessage(data) {
  return request({
    url: '/device/seriesMessage',
    method: 'post',
    data: data
  })
}

// 修改通信报文定义
export function updateSeriesMessage(data) {
  return request({
    url: '/device/seriesMessage',
    method: 'put',
    data: data
  })
}

// 删除通信报文定义
export function delSeriesMessage(id) {
  return request({
    url: '/device/seriesMessage/' + id,
    method: 'delete'
  })
}

// 查询通信报文定义详细
export function messageOptions(id) {
  return request({
    url: '/device/seriesMessage/messageOptions/' + id,
    method: 'get'
  })
}
